package com.example.anliku.service;

import com.example.anliku.entity.ESForSort;
import com.example.anliku.entity.ExampleForES;
import com.example.anliku.entity.Message;

import java.util.List;
import java.util.Map;

/**
 * @author ClayeLink
 * @date 2021/2/22 13:48
 */
public interface ElasticSearchService {

    Boolean insert (ExampleForES exampleForES);

    Boolean delete (Integer id);

    Boolean upadte (ExampleForES exampleForES);

    ESForSort select (Integer page, Integer size, String keyword, Integer dec);

    ExampleForES selectById(Integer id);

    Boolean blukDelete (List<String> list);

    void allDelete ();

    Boolean blukUpadteForRedis ();

    Boolean updateAll(Integer exampleId);

}
